<?php
/*
*   bansen 2014-06-06
*/
class Gift_cardApp extends MallbaseApp
{

    var $_user_id;

    function __construct()
    {
        $this->Gift_cardApp();
    }
    function Gift_cardApp()
    {
        parent::__construct();
        $this->_user_id = intval($this->visitor->get('user_id'));
    }
    function index()
    {

        $user_money = '0.00';
        if($this->_user_id>0)
        {
            //可用余额
            $model_usermoney =& m('usermoney');
            $usermoney_info  = $model_usermoney->get_info_by_user_id(intval($this->_user_id));
            if($usermoney_info['user_money'])
            {
                $user_money = $usermoney_info['user_money'];
            }
        }

        $this->_config_seo('title', '万菱礼品卡-' . Lang::get('site_title'));
        $this->assign('user_money', $user_money);
		$this->display('gift_card.index.html');
    }


}

?>
